<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:25:"./tpl/cn/index_index.html";i:1536978497;s:45:"E:\WWW\pz\hsycmsdemo02\tpl\cn\index_head.html";i:1536655269;s:45:"E:\WWW\pz\hsycmsdemo02\tpl\cn\index_foot.html";i:1536813414;}*/ ?>
<!DOCTYPE html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $site['webtitle']; ?></title>
<meta name="keywords" content="<?php echo $site['webkeywords']; ?>">
<meta name="description" content="<?php echo $site['webdescription']; ?>">
<link href="/tpl/cn/images/css/animate.min.css" rel="stylesheet" type="text/css">
<link href="/tpl/cn/images/css/style.css?v=<?php echo time(); ?>" rel="stylesheet" type="text/css">
<script src="/tpl/cn/images/js/jquery.js"></script>
<script src="/tpl/cn/images/js/teixiao.js"></script>
<script src="/tpl/cn/images/js/wow.min.js"></script>
</head>
<body>
<div class="headtop">
  <div class="wrap">
  <span class="fl">欢迎光临本网站！<img src="/tpl/cn/images/img/tel.png" alt="" /><?php echo $site['contact_400']; ?></span>
  <ul>
  <li><a href="##">设为首页</a></li>
  <li><a href="##">加入收藏</a></li>
  <li class="last"><a href="##">在线留言</a></li>
  </ul>
  </div>
</div>
<div class="headnav">
  <div class="wrap"> <a href="/"><img src="<?php echo $site['weblogo']; ?>" alt="<?php echo $site['contact_company']; ?>" class="logo" /></a>
    <ul>
      <li><a href="/" class="a1 <?php if($nid == 0): ?>on<?php endif; ?>" >首页</a></li>      
      <?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
      <li><a href="<?php echo $v['link']; ?>" class="a1 <?php if($v['id'] == $nid): ?>on<?php endif; ?>" ><?php echo $v['title']; ?></a></li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
</div>
 <style type="text/css">body{ background:#fff;}</style>
<!-- 轮播图 -->
<div class="banner">
  <div class="bd">
    <ul>
      <?php $test_arr=db("article")->where("nid = 83")->order("sort,id")->limit("10")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <li><a href="<?php echo $vo['url']; ?>"><img src="<?php echo $vo['img']; ?>" alt="" /></a></li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
  <div class="hd">
    <ul>
      <?php $test_arr=db("article")->where("nid = 83")->order("sort,id")->limit("10")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <li></li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
  <a href="javascript:void(0);" class="prev"></a> <a href="javascript:void(0);" class="next"></a> </div>
<script>
jQuery(".banner").slide({ titCell:".hd li", mainCell:".bd ul", effect:"leftLoop",  autoPlay:true, delayTime:300, interTime:3500 });	
</script>
<div class="clear"></div>
<!-- 服务项目 -->
<div class="service">
  <div class="wrap">
    <div class="title">
      <p>S E R V I C E S</p>
      <p class="line"></p>
      <h2>服务项目</h2>
    </div>
    <ul class="service-item">
      <?php $test_arr=db("article")->where("nid = 85")->order("istop desc,sort desc,id desc")->limit("5")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <li> <a href="/service/<?php echo $vo['id']; ?>.html">
        <p><img src="<?php echo $vo['img']; ?>" alt="" /></p>
        <h3><?php echo $vo['title']; ?></h3>
        <p class="p1"><?php echo $vo['subtitle']; ?></p>
        <p class="line"></p>
        </a> </li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
</div>
<!-- 关于 -->
<div class="about">
  <div class="wrap">
    <div class="title">
      <p>A B O U T U S</p>
      <p class="line"></p>
      <h2>关于我们</h2>
    </div>
    <div class="aboutxt"> <?php $test_arr=db("cate")->where("id = 51")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <?php echo $vo['content']; endforeach; endif; else: echo "" ;endif; ?>
      <p><a href="/about/" class="more">了解更多+</a></p>
    </div>
  </div>
</div>
<!-- 案例 -->
<div class="case">
  <div class="wrap">
    <div class="title">
      <p>C A S E</p>
      <p class="line"></p>
      <h2>客户案例</h2>
    </div>
    <ul>
      <?php $test_arr=db("article")->where("nid = 3")->order("istop desc,sort desc,id desc")->limit("4")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <li> <a href="/case/<?php echo $vo['id']; ?>.html">
        <div class="pic"><img src="<?php echo $vo['img']; ?>" alt="" /><i></i></div>
        <h3><?php echo $vo['title']; ?></h3>
        </a> </li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
</div>
<!-- 评价 -->
<div class="customer">
  <div class="wrap">
    <div class="title">
      <p>E V A L U A T I O N</p>
      <p class="line"></p>
      <h2>客户评价</h2>
    </div>
    <ul class="cl">
      <?php $test_arr=db("article")->where("nid = 87")->order("istop desc,sort desc,id desc")->limit("6")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <li><img src="<?php echo $vo['img']; ?>" alt="" /><i></i></li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    <p class="cline"></p>
    <div class="cr">
      <ul>
        <?php $test_arr=db("article")->where("nid = 87")->order("istop desc,sort desc,id desc")->limit("6")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
        <li class="syui-anim syui-anim-up" style="display:none;">
          <h3><?php echo $vo['note']; ?></h3>
          <p><i></i><?php echo $vo['title']; ?></p>
        </li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
    </div>
  </div>
</div>
<script>
$(function(){
	$(".customer .cr ul li:eq(0)").show();
	$(".customer .cl li:eq(0)").addClass("on");
	$(".customer .cl li").click(function(){
		var index = $(this).index();
		$(this).siblings().removeClass("on")
		$(this).addClass("on");
		$(".customer .cr ul li").hide();
		$(".customer .cr ul li").eq(index).show();
	})
})
</script> 
<!-- 新闻 -->
<div class="new">
  <div class="wrap">
    <div class="title">
      <p>N E W S</p>
      <p class="line"></p>
      <h2>新闻资讯</h2>
    </div>
    <ul>
      <?php $test_arr=db("article")->where("nid = 2")->order("istop desc,sort desc,id desc")->limit("3")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <li> <a href="/news/<?php echo $vo['id']; ?>.html">
        <div class="pic"><img src="<?php echo $vo['img']; ?>" alt="" /></div>
        <div class="note">
          <h2><?php echo $vo['title']; ?></h2>
          <p><?php echo msubstr($vo['note'],0,50,utf8,true); ?></p>
          <p class="mo"> Read more</p>
        </div>
        </a> </li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
</div>
<!-- 地图 -->
<div class="map">
  <div class="wrap">
    <div class="contact">
      <ul>
        <li class="li1">
          <h3>公司地址</h3>
          <p><?php echo $site['contact_address']; ?></p>
        </li>
        <li class="li2">
          <h3>联系电话</h3>
          <p><?php echo $site['contact_tel']; ?></p>
        </li>
        <li class="li3">
          <h3>公司邮箱</h3>
          <p><?php echo $site['contact_email']; ?></p>
        </li>
        <li class="li4">
          <h3>营业时间</h3>
          <p>周一至周日 早上8：00至下午6点</p>
        </li>
      </ul>
      <form action="<?php echo url('Show/sendemail'); ?>" method="post" data-type="ajax">
      <div class="book">
      <h2>联系我们<span>/Contact us</span></h2>
      <p><input type="text" name="name" class="intxt" placeholder="您的姓名" /></p>
      <p><input type="text" name="mobile" class="intxt" placeholder="您的电话" /></p>
      <p><input type="text" name="content" class="intxt" placeholder="留言内容" /></p>
      <p><input type="submit" value="提交留言" class="sbtn" /></p>
      </div>
      </form>
    </div>
  </div>
</div>
<script src="/public/layer/layer.js"></script> 
  <script>
$(document).on('submit','form[data-type=ajax]',function(){
	var url = $(this).attr('action');var data = $(this).serializeArray();	
	if($("input[name=name]").val()==""){ layer.msg("请输入姓名"); return false; }
	if($("input[name=mobile]").val()==""){ layer.msg("请输入手机"); return false; }	
	var phoneReg = /(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/;	
	var phone = $.trim($("input[name=mobile]").val());
	if (!phoneReg.test(phone)) {
		layer.msg('手机号码格式错误');
		return false;
	} 
	if($("input[name=content]").val()==""){ layer.msg("请输入内容"); return false; }
	$.post(url,data,function(res){		
		if(res.code == 1){ 
			layer.msg('提交成功'); 
			setTimeout(function(){			
				window.location.reload(); 
			},1500)
		}
	},"JSON");
	return false;
});
</script>
<div class="clear"></div>
<div class="footer">
  <div class="wrap">
    <div class="ewmbox">
      <p><img src="/tpl/cn/images/img/dblogo.png" alt="" /></p>
      <p class="p1"><img src="<?php echo $site['contact_ewm']; ?>" width="139" alt="" /></p>
      <p class="p2">扫一扫关注公众号</p>
    </div>
    <dl>
      <dt>网站导航<span>/Nav</span></dt>      
      <dd class="line"></dd>
      <dd><a href="/service/">服务项目</a></dd>
      <dd><a href="/case/">案例展示</a></dd> 
      <dd><a href="/about/">关于</a></dd>
      <dd><a href="/news/">新闻</a></dd>
      <dd><a href="/contact/">联系</a></dd>      
    </dl>
    <dl>
      <dt>帮助中心<span>/Help</span></dt>  
      <dd class="line"></dd>  
      <dd><a href="">服务流程</a></dd>
      <dd><a href="">技术支持</a></dd>
      <dd><a href="">售后服务</a></dd> 
      <dd><a href="">在线客服</a></dd> 
    </dl>
    <div class="companyevent">
     <h2>公司环境</h2>
     <p class="line"></p>
     <ul>
     <?php $test_arr=db("article")->where("nid = 1 and cid in (61)")->order("istop desc,sort desc,id desc")->limit("6")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
     <li><img src="<?php echo $vo['img']; ?>" alt="" /></li>
     <?php endforeach; endif; else: echo "" ;endif; ?>
     </ul>
    </div>
  </div>
  <div class="clear"></div>
  <div class="copyright">
    <div class="wrap"> <?php echo htmlspecialchars_decode($site['webcopyright']); ?><?php echo $site['webjs']; ?> </div>
  </div>
</div>
<!-- 客服 -->
<div class="yb_conct">
  <div class="yb_bar">
    <ul>
      <li class="yb_top">返回顶部</li>
      <li class="yb_phone"><?php echo $site['contact_400']; ?></li>
      <li class="yb_QQ"> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $site['contact_qq']; ?>&amp;site=qq&amp;menu=yes&amp;from=message&amp;isappinstalled=0" title="即刻发送您的需求">在线咨询</a> </li>
      <li class="yb_ercode" style="height:53px;">微信二维码 <br>
        <img class="hd_qr" src="<?php echo $site['contact_ewm']; ?>" alt="关注你附近"> </li>
    </ul>
  </div>
</div>
<script>
 //下拉动画 	
  if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
	new WOW().init();
  };  
  $(function(){
	 var leftH = $(".left").height();
	 var rightH = $(".right").height()-200; 
	 if(rightH>leftH){
	   var leftop = $(".left").offset().top;
	   var windowHeight = $(window).height();
	   $(window).scroll(function(){	
	   	  var scrolltop = $(this).scrollTop();
	   	  console.log(windowHeight-scrolltop);
		  if(scrolltop >= leftop){
			  $(".left").addClass("fixd");
		  }else{			
			  $(".left").removeClass("fixd");
		  }
	   }) 
	 }
	 
  })
  $(function() {
	// 悬浮窗口
	$(".yb_conct").hover(function() {
		$(".yb_conct").css("right", "5px");
		$(".yb_bar .yb_ercode").css('height', '200px');
	}, function() {
		$(".yb_conct").css("right", "-127px");
		$(".yb_bar .yb_ercode").css('height', '53px');
	});
	// 返回顶部
	$(".yb_top").click(function() {
		$("html,body").animate({
			'scrollTop': '0px'
		}, 300)
	});
 });
</script> 
</body></html>